package com.allm.ai.common.util;

import java.util.UUID;

public class IdUtils {

    /**
     * 生成模型专用conversationId
     */
    public static String generateModelConversationId(String conversationId, Long modelId) {
        String timestamp = String.valueOf(System.currentTimeMillis());
        String uuid = UUID.randomUUID().toString().substring(0, 8);
        return String.format("model-%s-%d-%s-%s", conversationId, modelId, timestamp, uuid);
    }
}
